package com.wocai.jrt.orders.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orders.dao.ContactHistoryDao;
import com.wocai.jrt.orders.model.ContactHistory;
import com.wocai.jrt.orders.model.ContactHistoryBean;
import com.wocai.jrt.orders.service.spi.ContactHistoryService;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 合同相关的service业务实现。
 * @author yinlei
 * @date 2016-4-20 17:39:53
 */
@Named
public class ContactHistoryServiceImpl extends MyBatisServiceImpl<ContactHistory, ContactHistoryBean, String> implements ContactHistoryService {
	// 添加了方法后，记得改为private
	protected ContactHistoryDao contactHistoryDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<ContactHistory, ContactHistoryBean, String> contactHistoryDao) {
		this.baseDao = contactHistoryDao;
		this.contactHistoryDao = (ContactHistoryDao) contactHistoryDao;
	}
}
